home *** CD-ROM | disk | FTP | other *** search
/ Hackers Handbook - Millenium Edition / Hackers Handbook.iso / library / hack / vms1.txt < prev    next >
Encoding:
Text File  |  1998-12-04  |  7.3 KB  |  254 lines

  1. Introduction to VMS - Part I
  2. gr1p@b4b0.org
  3.  
  4. People have been asking quite a few questions about VMS/openVMS recently.  
  5. They are finding that some machines on University subnets are using OpenVMS 
  6. and they don't have any experience with this operating system, hopefully
  7. this short guide will help a few people along and give them some introductory 
  8. knowledge of VMS.
  9.  
  10. VMS/OpenVMS is a multi-tasking/processing virtual memory operating
  11. system, VMS standing for Virtual Memory System.  It is designed to be able
  12. to handle memory extensions beyond the capabilities of its processer (VAX - 
  13. Virtual Address extension).  This therefore allows it to run software and
  14. programs much larger than its physical memory and processer speed.  VMS is
  15. also run on the ALPHA platform, which uses Advanced RISC Architecture
  16. which provides similar power to a VAX, but the ALPHA allows more
  17. flexibility and is slightly more technologically advanced than VAX in the
  18. fact that it can support installation of unix based Operating Systems  as
  19. well as VMS.  The Differences between running VMS on a VAX or an ALPHA
  20. platform are very small as most programs can just be recompiled and run
  21. to suit whichever architecture VMS is running on.  The float-type's and
  22. Data Alignment technique's on VAX and ALPHA are slightly different, but
  23. close enough to coherantly exist without causing any complimation problems
  24. in Installation.
  25.  
  26. VMS was first developed in 1976 by DEC (Digital Equipment Corporation) as
  27. part of their new 32 bit Virtual memory operating systems project.  It has 
  28. since been supported by many Academic Institutions and large financial 
  29. companies due to its large power capabilities.
  30.  
  31. It uses a command line scripting language called DCL (Digital Command 
  32. Language) along with compiler capabilities in other more well-known
  33. programming languages such as Pascal, Cobal, Ada, Fortran, C, Basic etc.
  34.  
  35. VMS is a very secure Operating System internally but it does often, by
  36. default have some easy to access default logins. (similar to how IRIX
  37. often has unpassword lp accounts etc.).
  38.  
  39. Some default logins on VMS include..
  40.  
  41. guest/guest
  42. guest/<nopasswd>
  43. operator/operator
  44. system/system
  45. system/manager
  46. system/operator
  47. support/support
  48. decnet/decnet
  49. field/field
  50. default/default
  51. operations/operations
  52.  
  53. When entering a VMS system will be receive a login prompt/message similar
  54. to this..
  55.  
  56. -=-=-
  57.  
  58. Username: GUEST
  59. Password:
  60.         Welcome to OpenVMS VAX V6.2
  61.  
  62.     Last interactive login on Monday, 14-SEP-1998 20:09
  63.     Last non-interactive login on Tuesday, 15-SEP-1998 14:43
  64.  
  65.  
  66. There are new messages in folder BLAH.
  67.  
  68. -=-=-
  69.  
  70. You are the presented with a prompt looking this this..
  71.  
  72. $
  73.  
  74. .x BASIC VMS COMMANDS x.
  75.  
  76. Below is a list of some basic commands that you will need to know to
  77. navigate you way around a VMS system from the command line prompt
  78. comfortably..
  79.  
  80. HELP
  81.  
  82. If in doubt, There is always the help screen.
  83.  
  84. $ help
  85.  
  86. This is large and offers detailed help on MANY commands which are not
  87. covered here.
  88.  
  89. LOGOUT
  90.  
  91. Logs the user out of the system.
  92.  
  93. EDIT 
  94.  
  95. This brings up the VMS editor (which uses a VT-220 terminal)
  96.  
  97. ACCOUNTING
  98.  
  99. Accounting is the program that keeps logs of the usage users are making
  100. from the system.
  101.  
  102. @
  103.  
  104. This executes a DCL eg.
  105.  
  106. $ @elitedcl.com
  107.  
  108. This is just the same as running a unix style shell script at the command
  109. line or even a dos .exe/.com file at dos command line.
  110.  
  111. DEL
  112.  
  113. Deletes a file on the system eg.
  114.  
  115. $ del file.dat
  116.  
  117. RUN
  118.  
  119. This will run an executable file.
  120.  
  121. $ run elite.exe
  122.  
  123. DIR
  124.  
  125. Lists the contents of a directory.
  126.  
  127. There are two widely used options that you should know here.
  128.  
  129. /brief  -       gives a brief listing of the directory, similar to ls
  130. /full   -       gives a full listing of the directory, similar to ls -al
  131.                 but gives pages on information rather than a little
  132.                 permissions/size chart..
  133.  
  134. SHOW
  135.  
  136. The show command has quite a few options and can provide a lot of
  137. information about the system that you are on.
  138.  
  139. The command must be followed by an option, and some options include..
  140.  
  141. users   -       shows all online users at the current time.
  142. time    -       shows the current local time of the system.
  143. system  -       presents you with system information.
  144. memory  -       shows you the memory the machine is using/running.
  145. network -       displays network information to which the VMS is connected.
  146. process -       process <processname>, similar to unix ps command.
  147. devices -       list of devices attached to the system.
  148. quota   -       disk quota of current user.
  149.  
  150. TYPE
  151.  
  152. This command will display a file at the terminal, it is the same as the
  153. unix cat command.
  154.  
  155. $ type <filename>
  156.  
  157. MAIL
  158.  
  159. This will send mail to any machine connected to any shared network or to
  160. another local user on the system. 
  161.  
  162. SET FILE/PROTECTION
  163.  
  164. This command sets permissions of files, similar to the unix chmod command,
  165. however it has different levels of permissions than standard unix
  166. permissions.
  167.  
  168. The most common permission for a regular users file is..
  169.  
  170. $ set file/protection=owner[rwed] leet.dat
  171.  
  172. This sets the permission of leet.dat to read (r), write (w), edit (e),
  173. delete (d) permission of the user who owns the file. ie. owner
  174.  
  175. Other possible permissions include..
  176.  
  177. world   -       this (in place of owner) would make the file world (rwed?)
  178. group   -       this would give permission to people in the same user
  179. group
  180. system  -       this would give permission to all users with system
  181. access.
  182.  
  183. eg. $ set file/protection=world[r] leet.dat
  184.  
  185. Would result in leet.dat being world readable.
  186.  
  187. PHONE
  188.  
  189. Phone is a VMS chat program similar to the unix talk program.
  190.  
  191. type $ phone
  192.  
  193. and your prompt will change from a $ to a %
  194. at this point type the username of the person you wish to chat with, you
  195. can see if they are online via typing 'show users' beforehand.
  196.  
  197. % guest
  198.  
  199. would then start a talk session between yourself and the person logged in
  200. as guest.
  201.  
  202. $PASSWORD
  203.  
  204. This would change the password of the user you are logged in as.
  205.  
  206. eg. $ $password fuqy0u
  207.  
  208. Would result in your new password being fuqy0u.
  209.  
  210. CREATE
  211.  
  212. Create is the pascal compiler that is used to compile .pas files.
  213.  
  214. $ create whatever.pas
  215.  
  216. would then result in the production of an executable file from the .pas
  217. code.
  218.  
  219. .x FILE EXTENSIONS x.
  220.  
  221. Below is a list of common file extensions in a VMS enviroment, if I missed
  222. any common ones out I apoligise..
  223.  
  224. com     -       A DCL Batch file.
  225. cld     -       A DCL descriptor file (much like a windoze .dll). 
  226. dat     -       A general Data File.
  227. exe     -       An executable file.
  228. lis     -       System Directory listing file.
  229. dir     -       A directory/Subdirectory file
  230. tmp     -       A temporary storage file.
  231. txt     -       A simple text file, also used for outputted mail files.
  232. uaf     -       A user authorisation file.
  233. sys     -       A System Image file.
  234. mai     -       A Mail message file.
  235. edt     -       A command file for the VMS EDT editor.
  236. jou     -       EDT Journal which logs any known problems.
  237. ada     -       Ada source code.
  238. bas     -       Basic Source code.
  239. c       -       C source code.
  240. cob     -       Cobol source code.
  241. for     -       Fortran source code.
  242. pas     -       Pascal code.
  243. obj     -       The compiler creates object code before it links the source 
  244.  
  245. [ All examples within this text were demonstrated on an OpenVMS 6.2
  246. system, which is a common VMS system found connected to academic networks
  247. today. ]
  248.  
  249. 9x - Spreading H/P in the new millenium.
  250. http://www2.dope.org/9x
  251.  
  252. gr1p
  253. gr1p@b4b0.org
  254.